<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订餐系统-列表页</title>
    <link rel="stylesheet" href="/public/home/assets/css/public.css">
</head>
<body>
    <header class="clearfix owf">
        <div class="logo pull-left">
            <a href="/" class="owf"><img src="/public/home/assets/images/logo.png" alt="点餐系统" class="pull-left"> <span class="logo-text pull-left">点餐系统</span></a>
        </div>
        <div class="user-info pull-right">
            <table>
                <tr>
                    <td><div class="welcom-text">你好，欢迎您 <?php echo ($_SESSION['home']['username']); ?></div></td>
                    <td><div class="user-icon">
                        <div class="logo-img"></div>
                    </div></td>
                    <td><span class="logout">退出</span></td>
                </tr>
            </table>
        </div>
    </header>
    <div class="content">
        <div class="order-search owf">
            <input type="text" name="name" placeholder="查询我的订单" class="pull-right">
        </div>
        <div class="order-status">
            <div class="status-item status-active">
                <div class="out-radius ">
                    <div class="inner-radius">

                    </div>
                    <p>选择菜品</p>
                </div>
                <div class="right-line"></div>

            </div>
            <div class="status-item ">
                <div class="out-radius">
                    <div class="inner-radius">
                    </div>
                    <p>确认订单信息</p>
                </div>
                <div class="right-line"></div>
            </div>
            <div class="status-item">
                <div class="out-radius">
                    <div class="inner-radius">
                    </div>
                    <p>成功提交订单</p>
                </div>
            </div>
        </div>
    </div>
    <div class="content owf">
        <h2 class="bold-title">今日菜品</h2>
        <ul class="food-list owf">
            <!-- 编历 -->
            <?php if(is_array($listData)): foreach($listData as $key=>$value): ?><li class="food-item">
                <a href="javascript:;">
                    <div class="owf">
                        <img src="<?php echo ($value['foodimg']); ?>" alt="" class="good-icon pull-left">
                        <div class="pull-left goods-info">
                            <h3><?php echo ($value['foodname']); ?></h3>
                            <p>
                                <?php echo ($value['foodconstruct']); ?>
                            </p>
                            <div class="bottom-info owf" style="padding:0px">
                                <span class="pull-left goods-price">￥<?php echo ($value['foodprice']); ?></span>
                                <span class="pull-right add-cart" data-id="0">加入购物车</span>
                            </div>
                        </div>
                    </div>
                </a>
            </li><?php endforeach; endif; ?>
        </ul>
    </div>
</body>
<script src="/public/home/assets/js/jquery.min.js"></script>
<script>
    $(function(){
        $('.logout').click(function(){
            window.location.href = '/home/public/loginout'
        })
    })
</script>
</html>